﻿<controls:ChildWindow x:Class="Berico.SnagL.Infrastructure.Controls.Views.CustomMessageDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Title="{Binding Title}"
           Width="400" Height="300">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <ScrollViewer VerticalScrollBarVisibility="Auto">
            <TextBlock Name="textBlock" TextWrapping="Wrap" Text="{Binding Text}" />
        </ScrollViewer>

        <Button x:Name="CloseButton" Content="Close" Click="CloseButtonClick" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>